<template>
	<view class="">
		<view class="search" @click="gotoSearch()">
			<u-search placeholder="日照香炉生紫烟" v-model="keyword" bgColor="white" :animation="true" height="80"
				class="searchBox" shape="round"></u-search>
			<view class="rightClassify" @click="gotoCategory()">
				<u-icon name="list-dot" color="#4cd964" size="40"></u-icon>
				<p>分类</p>
			</view>
		</view>

		<view class="">

			<topscroll class=""></topscroll>
		</view>

		<!-- 广告图 -->
		<view style="width: 100%;height: 10vh;margin-top: 14px;" class="">
			<img style="width: 100%;height: 100%;border-radius: 15px;"
				src="https://img1.baidu.com/it/u=1176362935,1432244848&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1706547600&t=cc073152959dc4074d0ebeb151da4c2e"
				alt="">
		</view>




	</view>
</template>

<script>
	import topscroll from '../components/topscroll.vue'
	export default {
		data() {
			return {
				keyword: '',
			}
		},
		components: {
			topscroll
		},
		mounted() {
			
		},
		methods: {
			gotoSearch() {
				uni.navigateTo({
					url: '../../pagesA/search/search',
					animationType: "none",
					animationDuration: 500

				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.search {

		display: flex;
		justify-content: space-between;
		align-items: center;


		.searchBox {
			position: relative;

			padding-left: 20px;
			width: 82%;

		}

		.rightClassify {
			position: relative;

			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			margin-top: 10px;
			padding-right: 10px;
			padding: 0, 0, 5, 5;
		}
	}


	.searchBox /deep/ .u-search {}
</style>